'''
Created on Jul 20, 2014

@author: nibunan
'''
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from pawnbroking.models import DailyBalanceSheet

@login_required
def get_initial_view(request):
    return render(request, 'balance_sheet.html')

def get_pledge_details(request):
    pledges = []
    def transform(dailyBalSheet):
        pledges.append({'date': dailyBalSheet.date, 'no_of_pledges': })
        
    DailyBalanceSheet.objects.all()
